home *** CD-ROM | disk | FTP | other *** search
- (defun C:shtpt ()
- (if (= cirrad nil) (setq cirrad (getreal "Enter Shot Point Radius<0.04>: ")))
- (if (= cirrad nil) (setq cirrad 0.04))
- (setq sp1 (getint "Enter Beginning Shot Point No.: "))
- (setq spI (getint "Enter Numbering Interval: "))
- (if (= txsz nil) (setq txsz (getreal "Enter Text Size<0.08>: ")))
- (if (= txsz nil) (setq txsz 0.08))
- (setq loc1 (getpoint "Where? "))
- (command "layer" "set" 1)
- (command "")
- (command "circle" loc1 cirrad)
- (setq loc2 (getpoint "Where? "))
- (setq wiz (angle loc1 loc2))
- (setq ttl (distance loc1 loc2))
- (setq new1 (polar loc1 wiz cirrad))
- (setq lindist (- ttl (* cirrad 2)))
- (setq new2 (polar new1 wiz lindist))
- (setq txptang (- wiz 0.5236))
- (setq txptdist (+ cirrad 0.02))
- (setq txpt1 (polar loc1 txptang txptdist))
- (setq txan (angtos (- wiz 1.57) 0 0))
- (command "text" txpt1 txsz txan sp1)
- (setq sp2 (+ sp1 spI))
- (command "line" new1 new2)
- (command "")
- (command "circle" loc2 cirrad)
- (setq l t)
- (while l (setq loc1 loc2) (setq loc2 (getpoint "Where?: "))
- (setq wiz (angle loc1 loc2)) (setq ttl (distance loc1 loc2))
- (setq new1 (polar loc1 wiz cirrad))
- (setq lindist (- ttl (* cirrad 2)))
- (setq new2 (polar new1 wiz lindist))
- (setq txptang (- wiz 0.5236))
- (setq txpt1 (polar loc1 txptang txptdist))
- (setq sp2 (+ sp1 spI)) (setq txan (angtos (- wiz 1.57) 0 0))
- (command "text" txpt1 txsz txan sp2) (setq sp1 sp2)
- (command "line" new1 new2)
- (command "") (command "circle" loc2 cirrad))
- )